package com.sasis.model;
// Generated 2007-5-30 11:11:26 by Hibernate Tools 3.1.0.beta4

import java.math.BigDecimal;
import java.sql.Date;
import java.sql.Timestamp;


/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="FLIGHT_ADJUST_PROTECT"
 *     
 */

public class FlightAdjustProtect extends com.sasis.model.BaseObject implements java.io.Serializable {


    // Fields    

    private Integer id;
    private Integer flightInfoId;
    private String standard;
    private Integer cashCount;
    private BigDecimal cashMoney;
    private Integer bookCount;
    private String compensationMemo;
    private BigDecimal bookMoney;
    private BigDecimal totalMoney;
    private String superfluityApproveMan;
    private Timestamp superfluityApproveDate;
    private String superfluityMemo;
    private String foodAcceptor;
    private Timestamp foodAcceptDate;
    private String foodAcceptMemo;
    private String foodMemo;
    private String hotelMemo;
    private String otherMemo;
    private Integer operator;
    private Timestamp operatDate;


    // Constructors

    /** default constructor */
    public FlightAdjustProtect() {
    }

	/** minimal constructor */
    public FlightAdjustProtect(Integer flightInfoId) {
        this.flightInfoId = flightInfoId;
    }
    
    /** full constructor */
    public FlightAdjustProtect(Integer flightInfoId, String standard, Integer cashCount, BigDecimal cashMoney, Integer bookCount, String compensationMemo, BigDecimal bookMoney, BigDecimal totalMoney, String superfluityApproveMan, Timestamp superfluityApproveDate, String superfluityMemo, String foodAcceptor, Timestamp foodAcceptDate, String foodAcceptMemo, String foodMemo, String hotelMemo, String otherMemo, Integer operator, Timestamp operatDate) {
        this.flightInfoId = flightInfoId;
        this.standard = standard;
        this.cashCount = cashCount;
        this.cashMoney = cashMoney;
        this.bookCount = bookCount;
        this.compensationMemo = compensationMemo;
        this.bookMoney = bookMoney;
        this.totalMoney = totalMoney;
        this.superfluityApproveMan = superfluityApproveMan;
        this.superfluityApproveDate = superfluityApproveDate;
        this.superfluityMemo = superfluityMemo;
        this.foodAcceptor = foodAcceptor;
        this.foodAcceptDate = foodAcceptDate;
        this.foodAcceptMemo = foodAcceptMemo;
        this.foodMemo = foodMemo;
        this.hotelMemo = hotelMemo;
        this.otherMemo = otherMemo;
        this.operator = operator;
        this.operatDate = operatDate;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="ID"
     *         
     */

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    /**       
     *      *            @hibernate.property
     *             column="FLIGHT_INFO_ID"
     *             length="22"
     *             not-null="true"
     *         
     */

    public Integer getFlightInfoId() {
        return this.flightInfoId;
    }
    
    public void setFlightInfoId(Integer flightInfoId) {
        this.flightInfoId = flightInfoId;
    }
    /**       
     *      *            @hibernate.property
     *             column="STANDARD"
     *             length="256"
     *         
     */

    public String getStandard() {
        return this.standard;
    }
    
    public void setStandard(String standard) {
        this.standard = standard;
    }
    /**       
     *      *            @hibernate.property
     *             column="CASH_COUNT"
     *             length="22"
     *         
     */

    public Integer getCashCount() {
        return this.cashCount;
    }
    
    public void setCashCount(Integer cashCount) {
        this.cashCount = cashCount;
    }
    /**       
     *      *            @hibernate.property
     *             column="CASH_MONEY"
     *             length="18"
     *         
     */

    public BigDecimal getCashMoney() {
        return this.cashMoney;
    }
    
    public void setCashMoney(BigDecimal cashMoney) {
        this.cashMoney = cashMoney;
    }
    /**       
     *      *            @hibernate.property
     *             column="BOOK_COUNT"
     *             length="22"
     *         
     */

    public Integer getBookCount() {
        return this.bookCount;
    }
    
    public void setBookCount(Integer bookCount) {
        this.bookCount = bookCount;
    }
    /**       
     *      *            @hibernate.property
     *             column="COMPENSATION_MEMO"
     *             length="1024"
     *         
     */

    public String getCompensationMemo() {
        return this.compensationMemo;
    }
    
    public void setCompensationMemo(String compensationMemo) {
        this.compensationMemo = compensationMemo;
    }
    /**       
     *      *            @hibernate.property
     *             column="BOOK_MONEY"
     *             length="18"
     *         
     */

    public BigDecimal getBookMoney() {
        return this.bookMoney;
    }
    
    public void setBookMoney(BigDecimal bookMoney) {
        this.bookMoney = bookMoney;
    }
    /**       
     *      *            @hibernate.property
     *             column="TOTAL_MONEY"
     *             length="18"
     *         
     */

    public BigDecimal getTotalMoney() {
        return this.totalMoney;
    }
    
    public void setTotalMoney(BigDecimal totalMoney) {
        this.totalMoney = totalMoney;
    }
    /**       
     *      *            @hibernate.property
     *             column="SUPERFLUITY_APPROVE_MAN"
     *             length="32"
     *         
     */

    public String getSuperfluityApproveMan() {
        return this.superfluityApproveMan;
    }
    
    public void setSuperfluityApproveMan(String superfluityApproveMan) {
        this.superfluityApproveMan = superfluityApproveMan;
    }
    /**       
     *      *            @hibernate.property
     *             column="SUPERFLUITY_APPROVE_DATE"
     *             length="7"
     *         
     */

    public Timestamp getSuperfluityApproveDate() {
        return this.superfluityApproveDate;
    }
    
    public void setSuperfluityApproveDate(Timestamp superfluityApproveDate) {
        this.superfluityApproveDate = superfluityApproveDate;
    }
    /**       
     *      *            @hibernate.property
     *             column="SUPERFLUITY_MEMO"
     *             length="1024"
     *         
     */

    public String getSuperfluityMemo() {
        return this.superfluityMemo;
    }
    
    public void setSuperfluityMemo(String superfluityMemo) {
        this.superfluityMemo = superfluityMemo;
    }
    /**       
     *      *            @hibernate.property
     *             column="FOOD_ACCEPTOR"
     *             length="32"
     *         
     */

    public String getFoodAcceptor() {
        return this.foodAcceptor;
    }
    
    public void setFoodAcceptor(String foodAcceptor) {
        this.foodAcceptor = foodAcceptor;
    }
    /**       
     *      *            @hibernate.property
     *             column="FOOD_ACCEPT_DATE"
     *             length="7"
     *         
     */

    public Timestamp getFoodAcceptDate() {
        return this.foodAcceptDate;
    }
    
    public void setFoodAcceptDate(Timestamp foodAcceptDate) {
        this.foodAcceptDate = foodAcceptDate;
    }
    /**       
     *      *            @hibernate.property
     *             column="FOOD_ACCEPT_MEMO"
     *             length="1024"
     *         
     */

    public String getFoodAcceptMemo() {
        return this.foodAcceptMemo;
    }
    
    public void setFoodAcceptMemo(String foodAcceptMemo) {
        this.foodAcceptMemo = foodAcceptMemo;
    }
    /**       
     *      *            @hibernate.property
     *             column="FOOD_MEMO"
     *             length="1024"
     *         
     */

    public String getFoodMemo() {
        return this.foodMemo;
    }
    
    public void setFoodMemo(String foodMemo) {
        this.foodMemo = foodMemo;
    }
    /**       
     *      *            @hibernate.property
     *             column="HOTEL_MEMO"
     *             length="1024"
     *         
     */

    public String getHotelMemo() {
        return this.hotelMemo;
    }
    
    public void setHotelMemo(String hotelMemo) {
        this.hotelMemo = hotelMemo;
    }
    /**       
     *      *            @hibernate.property
     *             column="OTHER_MEMO"
     *             length="1024"
     *         
     */

    public String getOtherMemo() {
        return this.otherMemo;
    }
    
    public void setOtherMemo(String otherMemo) {
        this.otherMemo = otherMemo;
    }
    /**       
     *      *            @hibernate.property
     *             column="OPERATOR"
     *             length="22"
     *         
     */

    public Integer getOperator() {
        return this.operator;
    }
    
    public void setOperator(Integer operator) {
        this.operator = operator;
    }
    /**       
     *      *            @hibernate.property
     *             column="OPERAT_DATE"
     *             length="7"
     *         
     */

    public Timestamp getOperatDate() {
        return this.operatDate;
    }
    
    public void setOperatDate(Timestamp operatDate) {
        this.operatDate = operatDate;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("flightInfoId").append("='").append(getFlightInfoId()).append("' ");			
      buffer.append("standard").append("='").append(getStandard()).append("' ");			
      buffer.append("cashCount").append("='").append(getCashCount()).append("' ");			
      buffer.append("cashMoney").append("='").append(getCashMoney()).append("' ");			
      buffer.append("bookCount").append("='").append(getBookCount()).append("' ");			
      buffer.append("compensationMemo").append("='").append(getCompensationMemo()).append("' ");			
      buffer.append("bookMoney").append("='").append(getBookMoney()).append("' ");			
      buffer.append("totalMoney").append("='").append(getTotalMoney()).append("' ");			
      buffer.append("superfluityApproveMan").append("='").append(getSuperfluityApproveMan()).append("' ");			
      buffer.append("superfluityApproveDate").append("='").append(getSuperfluityApproveDate()).append("' ");			
      buffer.append("superfluityMemo").append("='").append(getSuperfluityMemo()).append("' ");			
      buffer.append("foodAcceptor").append("='").append(getFoodAcceptor()).append("' ");			
      buffer.append("foodAcceptDate").append("='").append(getFoodAcceptDate()).append("' ");			
      buffer.append("foodAcceptMemo").append("='").append(getFoodAcceptMemo()).append("' ");			
      buffer.append("foodMemo").append("='").append(getFoodMemo()).append("' ");			
      buffer.append("hotelMemo").append("='").append(getHotelMemo()).append("' ");			
      buffer.append("otherMemo").append("='").append(getOtherMemo()).append("' ");			
      buffer.append("operator").append("='").append(getOperator()).append("' ");			
      buffer.append("operatDate").append("='").append(getOperatDate()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof FlightAdjustProtect) ) return false;
		 FlightAdjustProtect castOther = ( FlightAdjustProtect ) other; 
         
		 return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )
 && ( (this.getFlightInfoId()==castOther.getFlightInfoId()) || ( this.getFlightInfoId()!=null && castOther.getFlightInfoId()!=null && this.getFlightInfoId().equals(castOther.getFlightInfoId()) ) )
 && ( (this.getStandard()==castOther.getStandard()) || ( this.getStandard()!=null && castOther.getStandard()!=null && this.getStandard().equals(castOther.getStandard()) ) )
 && ( (this.getCashCount()==castOther.getCashCount()) || ( this.getCashCount()!=null && castOther.getCashCount()!=null && this.getCashCount().equals(castOther.getCashCount()) ) )
 && ( (this.getCashMoney()==castOther.getCashMoney()) || ( this.getCashMoney()!=null && castOther.getCashMoney()!=null && this.getCashMoney().equals(castOther.getCashMoney()) ) )
 && ( (this.getBookCount()==castOther.getBookCount()) || ( this.getBookCount()!=null && castOther.getBookCount()!=null && this.getBookCount().equals(castOther.getBookCount()) ) )
 && ( (this.getCompensationMemo()==castOther.getCompensationMemo()) || ( this.getCompensationMemo()!=null && castOther.getCompensationMemo()!=null && this.getCompensationMemo().equals(castOther.getCompensationMemo()) ) )
 && ( (this.getBookMoney()==castOther.getBookMoney()) || ( this.getBookMoney()!=null && castOther.getBookMoney()!=null && this.getBookMoney().equals(castOther.getBookMoney()) ) )
 && ( (this.getTotalMoney()==castOther.getTotalMoney()) || ( this.getTotalMoney()!=null && castOther.getTotalMoney()!=null && this.getTotalMoney().equals(castOther.getTotalMoney()) ) )
 && ( (this.getSuperfluityApproveMan()==castOther.getSuperfluityApproveMan()) || ( this.getSuperfluityApproveMan()!=null && castOther.getSuperfluityApproveMan()!=null && this.getSuperfluityApproveMan().equals(castOther.getSuperfluityApproveMan()) ) )
 && ( (this.getSuperfluityApproveDate()==castOther.getSuperfluityApproveDate()) || ( this.getSuperfluityApproveDate()!=null && castOther.getSuperfluityApproveDate()!=null && this.getSuperfluityApproveDate().equals(castOther.getSuperfluityApproveDate()) ) )
 && ( (this.getSuperfluityMemo()==castOther.getSuperfluityMemo()) || ( this.getSuperfluityMemo()!=null && castOther.getSuperfluityMemo()!=null && this.getSuperfluityMemo().equals(castOther.getSuperfluityMemo()) ) )
 && ( (this.getFoodAcceptor()==castOther.getFoodAcceptor()) || ( this.getFoodAcceptor()!=null && castOther.getFoodAcceptor()!=null && this.getFoodAcceptor().equals(castOther.getFoodAcceptor()) ) )
 && ( (this.getFoodAcceptDate()==castOther.getFoodAcceptDate()) || ( this.getFoodAcceptDate()!=null && castOther.getFoodAcceptDate()!=null && this.getFoodAcceptDate().equals(castOther.getFoodAcceptDate()) ) )
 && ( (this.getFoodAcceptMemo()==castOther.getFoodAcceptMemo()) || ( this.getFoodAcceptMemo()!=null && castOther.getFoodAcceptMemo()!=null && this.getFoodAcceptMemo().equals(castOther.getFoodAcceptMemo()) ) )
 && ( (this.getFoodMemo()==castOther.getFoodMemo()) || ( this.getFoodMemo()!=null && castOther.getFoodMemo()!=null && this.getFoodMemo().equals(castOther.getFoodMemo()) ) )
 && ( (this.getHotelMemo()==castOther.getHotelMemo()) || ( this.getHotelMemo()!=null && castOther.getHotelMemo()!=null && this.getHotelMemo().equals(castOther.getHotelMemo()) ) )
 && ( (this.getOtherMemo()==castOther.getOtherMemo()) || ( this.getOtherMemo()!=null && castOther.getOtherMemo()!=null && this.getOtherMemo().equals(castOther.getOtherMemo()) ) )
 && ( (this.getOperator()==castOther.getOperator()) || ( this.getOperator()!=null && castOther.getOperator()!=null && this.getOperator().equals(castOther.getOperator()) ) )
 && ( (this.getOperatDate()==castOther.getOperatDate()) || ( this.getOperatDate()!=null && castOther.getOperatDate()!=null && this.getOperatDate().equals(castOther.getOperatDate()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );
         result = 37 * result + ( getFlightInfoId() == null ? 0 : this.getFlightInfoId().hashCode() );
         result = 37 * result + ( getStandard() == null ? 0 : this.getStandard().hashCode() );
         result = 37 * result + ( getCashCount() == null ? 0 : this.getCashCount().hashCode() );
         result = 37 * result + ( getCashMoney() == null ? 0 : this.getCashMoney().hashCode() );
         result = 37 * result + ( getBookCount() == null ? 0 : this.getBookCount().hashCode() );
         result = 37 * result + ( getCompensationMemo() == null ? 0 : this.getCompensationMemo().hashCode() );
         result = 37 * result + ( getBookMoney() == null ? 0 : this.getBookMoney().hashCode() );
         result = 37 * result + ( getTotalMoney() == null ? 0 : this.getTotalMoney().hashCode() );
         result = 37 * result + ( getSuperfluityApproveMan() == null ? 0 : this.getSuperfluityApproveMan().hashCode() );
         result = 37 * result + ( getSuperfluityApproveDate() == null ? 0 : this.getSuperfluityApproveDate().hashCode() );
         result = 37 * result + ( getSuperfluityMemo() == null ? 0 : this.getSuperfluityMemo().hashCode() );
         result = 37 * result + ( getFoodAcceptor() == null ? 0 : this.getFoodAcceptor().hashCode() );
         result = 37 * result + ( getFoodAcceptDate() == null ? 0 : this.getFoodAcceptDate().hashCode() );
         result = 37 * result + ( getFoodAcceptMemo() == null ? 0 : this.getFoodAcceptMemo().hashCode() );
         result = 37 * result + ( getFoodMemo() == null ? 0 : this.getFoodMemo().hashCode() );
         result = 37 * result + ( getHotelMemo() == null ? 0 : this.getHotelMemo().hashCode() );
         result = 37 * result + ( getOtherMemo() == null ? 0 : this.getOtherMemo().hashCode() );
         result = 37 * result + ( getOperator() == null ? 0 : this.getOperator().hashCode() );
         result = 37 * result + ( getOperatDate() == null ? 0 : this.getOperatDate().hashCode() );
         return result;
   }   





}
